<?php
//兼容5.3
if(strstr(PHP_VERSION,'5.2')) {
    set_magic_quotes_runtime(0);
}
session_start();
date_default_timezone_set('Asia/Shanghai');
include_once(ROOT.'/libs/core/Loader.php');

function __autoload($className) {
    Loader::load($className);
}
include_once(ROOT.'/config/path.php');
include_once(ROOT.'/libs/core/function.php');
if(strstr(PHP_VERSION,'5.2')) {
    if(ereg('gzip',$_SERVER['HTTP_ACCEPT_ENCODING'])) {
       ob_start("ob_gzhandler");
    }
}
//PdoSession::getInstance();
//session_start();
//date_default_timezone_set('Asia/Shanghai');